package com.wetool.wechat.feign;

import com.wetool.wechat.model.open.MinaAccessTokenResponse;
import feign.Param;
import feign.RequestLine;

/**
 * 微信小程序接口 
 * @author hjq
 */
public interface MinaFeignClient{

	/**
	 * 向微信服务器获取openid，unionid，session_key
	 * 
	 * @param code
	 * 
	 */
	@RequestLine("GET /sns/jscode2session?appid={APPID}&secret={SECRET}&js_code={JSCODE}&grant_type=authorization_code")
	public MinaAccessTokenResponse jscode2session(@Param("APPID")String APPID,@Param("SECRET")String SECRET,@Param("JSCODE")String JSCODE);

//	@RequestLine("GET /sns/jscode2session?appid= {APPID}&secret= {SECRET}&js_code= {JSCODE}&grant_type=authorization_code")
//	Object getList(@Param("APPID") String APPID, @Param("SECRET") String SECRET, @Param("JSCODE") String JSCODE, @Param("grantType") String grantType);

}
